package jiang.study.dadongserver.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="sys_user")

public class MyUser implements Serializable {
    @Id
    @Column(length = 64)
    private String id;
    @Column(length = 64)
    private String name;
    @Column(length = 64)
    private String pass;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public static String getMD5Pass(String pass){
        return pass;
    }
    public static boolean checkPass(String pass,String encodPass){
        return pass.equals(encodPass);
    }
}
